import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import store from './store'
import * as filters from './filters'

import LabelCom from "./components/common/LabelCom"
import CardCom from "./components/common/CardCom"
import ProductTitleCom from "./components/product/ProductTitleCom"
import DownLoadAppCom from "./components/common/DownLoadAppCom"


Vue.prototype.ossHost = 'https://littleshop.oss-cn-beijing.aliyuncs.com/'

let is_line = 0;   

if(is_line==1){
	
	Vue.prototype.httpHost = 'http://101.201.39.159:8000' //正式
	
	Vue.prototype.wapUrl = 'http://101.201.39.159'
	
	Vue.prototype.uploadUrl = 'http://101.201.39.159:8000/api/v1/files'
	
}else{
	
	Vue.prototype.httpHost = 'http://yingshi.localhost.com/' //正式
	
	Vue.prototype.wapUrl = 'https://dwap.bjyike.com'
	
	Vue.prototype.uploadUrl = 'http://yingshi.localhost.com/api/v1/files'
	
}


// import VConsole from 'vconsole'

// const vConsole = new VConsole()


Object.keys(filters).forEach((key) => {
    Vue.filter(key, filters[key])
})

Vue.component('LabelCom', LabelCom)
Vue.component('CardCom', CardCom)
Vue.component('ProductTitleCom', ProductTitleCom)
Vue.component('DownLoadAppCom', DownLoadAppCom)


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif